{include file="layout/layout" /}
<body style="background-color: #FFF; overflow: auto;">
<div id="toolTipLayer" style="position: absolute; z-index: 9999; display: none; visibility: visible; left: 95px; top: 573px;"></div>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>会员管理 - 会员信息</h3>
                <h5>商城系统会员管理会员信息</h5>
            </div>
        </div>
    </div>
    <form class="form-horizontal" id="user_form" action="{:url('User/detail')}" method="post">
        <div class="ncap-form-default">
            <dl class="row">
                <dt class="tit">
                    <label>会员昵称</label>
                </dt>
                <dd class="opt">
                    <input class="input-txt valid" name="nickname" value="{$res.nick_name}" readonly="readonly" type="text">
                    <input type="hidden" name="id" value="{$res.id}">
                    <p class="notic">会员昵称不可修改。</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>用户积分</label>
                </dt>
                <dd class="opt"><strong class="red">100</strong>&nbsp;积分 </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>账户余额</label>
                </dt>
                <dd class="opt"><strong class="red">10.00</strong>&nbsp;元 </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="openid"><em>*</em>Open ID</label>
                </dt>
                <dd class="opt">
                    <input id="openid" name="openid" class="input-txt" type="text" value="{$res.openid}" readonly="readonly">
                    <span class="err"></span>
                    <p class="notic">用户的微信openid 不可修改。</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="unionid"><em>*</em>Union ID</label>
                </dt>
                <dd class="opt">
                    <input id="unionid" name="unionid" class="input-txt" type="text" value="{$res.unionid}" readonly="readonly">
                    <span class="err"></span>
                    <p class="notic">用户的微信unionid 不可修改.</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="mobile"><em>*</em>手机号码</label>
                </dt>
                <dd class="opt">
                    <input id="mobile" name="mobile" value="{$res.mobile}" class="input-txt" type="text">
                    <span class="err"></span>
                    <p class="notic" id="notic">请输入常用的手机号码，将用来找回密码、接受订单通知等。</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="login_time">最近一次登录</label>
                </dt>
                <dd class="opt">
                    <input id="login_time" name="login_time" class="input-txt" type="text" value="{$res.login_time}" readonly="readonly">
                    <span class="err"></span>
                    <p class="notic">不可修改</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="parentid">上一级编号</label>
                </dt>
                <dd class="opt">
                    <input id="parentid" name="parentid" class="input-txt" value="{$res.parentid}" type="text" readonly="readonly">
                    <span class="err"></span>
                    <p class="notic">只有一级用户编号 不可修改.</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>性别</label>
                </dt>
                <dd class="opt">
                    <input value="0" name="gender" id="gender" {$res['gender']=='保密'?'checked':''} type="radio">
                    <label for="gender">保密</label>
                    <input value="1" name="gender" id="gender" type="radio" {$res['gender']=='男'?'checked':''}>
                    <label for="gender">男</label>
                    <input value="2" name="gender" id="gender" type="radio" {$res['gender']=='女' ?'checked':''}>
                    <label for="gender">女</label>
                    <span class="err"></span></dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label class="code_url">用户二维码</label>
                </dt>
                <dd class="opt">
                    {$res['code_url'] != '' ? '已生成' : '未生成'}
                    <img src="{$res['code_url']}">
                    <span class="err"></span></dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label>注册时间</label>
                </dt>
                <dd class="opt">{$res['create_time']}</dd>
            </dl>
           <!--  <dl class="row">
                <dt class="tit">
                    <label>冻结会员</label>
                </dt>
                <dd class="opt">
                    <div class="onoff">
                        <label for="static" class="cb-enable "><span>开启</span></label>
                        <label for="static" class="cb-disable selected"><span>关闭</span></label>
                        <input id="static" name="static" value="2" checked type="radio">
                        <input id="static" name="static" value="1" type="radio">
                    </div>
                    <p class="notic">如果冻结会员，会员将不能操作资金。</p>
                </dd>
            </dl> -->
            <dl class="row">
                <dt class="tit">
                    <label>冻结会员</label>
                </dt>
                <dd class="opt">
                    <div class="onoff">
                        <label for="is_distribut1" class="cb-enable"><span>开启</span></label>
                        <label for="is_distribut2" class="cb-disable selected"><span>关闭</span></label>
                        <input id="is_distribut1" name="static" value="2" type="radio">
                        <input id="is_distribut2" name="static" value="1" {$res['static']=='1'?'checked':''} type="radio">
                    </div>
                    <p class="notic">{$res['static']=='1'?'如果冻结会员，会员将不能操作资金,当前正常':'<font color="red">已冻结</font>'}</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                </dt>
                <dd class="opt">
                    <div style="height:160px;">
                        <!-- <span class="span_1">
                            <ul>
                                <li>用户余额</li>
                                <li>上一级编号</li>
                                <li>上二级编号</li>
                                <li>上三级编号</li>
                            </ul>
                        </span>
                        -->
                        <div style="clear:both;"></div>
                    </div>
                </dd>
            </dl>
            <div class="bot"><button id="button" style="width:96px;height:35px;background: #4FC0E8;border-radius:5px;line-height:35px;text-align: center;color:#fff;border: 0;font-size: 15px;">确认提交</button></div>
        </div>
    </form>
</div>
<script type="text/javascript">
     $('#mobile').blur(function(){
            var v = $(this).val();
             if(!(/^1[34578]\d{9}$/.test(v))){
                $(this).next().next().html("<font color='red'>不合法</font>");
                $('#button').attr("disabled",true);
            }else{
                $(this).next().next().html("<font color='green'>正确</font>");
                $('#button').attr("disabled",false);
            }
        })
</script>

</body></html>